<template>
  <div class="box-shadow">
    <!-- 搜索 -->
    <div class="search-area">
      <div class="form">
        <el-form
          :model="listQuery"
          ref="listQuery"
          size="small"
          :inline="true"
          label-width="115px"
        >
          <el-form-item
            :label="$t('巡检点名称') + ':'"
            prop="viewPointName"
            label-width="212px"
          >
            <el-input
              v-model="listQuery.viewPointName"
              :placeholder="$t('请输入')"
              clearable
              size="medium"
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
          <el-form-item :label="$t('开始时间') + ':'">
            <el-date-picker
              v-model="listQuery.startTime"
              type="date"
              size="medium"
              format="yyyy-MM-dd HH:mm:ss"
              value-format="yyyy-MM-dd HH:mm:ss"
              default-time="['00:00:00', '23:59:59']"
              :placeholder="$t('选择开始时间')"
              :picker-options="pickerOptionsStart"
            >
            </el-date-picker>
          </el-form-item>
          <el-form-item :label="$t('结束时间') + ':'">
            <el-date-picker
              v-model="listQuery.endTime"
              type="date"
              size="medium"
              :placeholder="$t('选择结束时间')"
              format="yyyy-MM-dd HH:mm:ss"
              value-format="yyyy-MM-dd HH:mm:ss"
              default-time="['00:00:00', '23:59:59']"
              :picker-options="pickerOptionsEnd"
            >
            </el-date-picker>
          </el-form-item>
        </el-form>
      </div>
      <div class="search-area-btn btns">
        <div @click="serachBtn" class="serch-btn cuver-point">
          {{ $t("搜索") }}
        </div>
        <div @click="resetFormBtn('listQuery')" class="reset-btn cuver-point">
          {{ $t("重置") }}
        </div>
      </div>
    </div>
    <!-- 表格 -->
    <div class="table">
      <div class="search-area-btn btns" style="width: 1000px">
        <div
          class="serch-btn cursor-pointer table-top"
          @click="defaultReport()"
        >
          {{ $t("导出PDF") }}
        </div>
        <div
          @click="defaultExcel()"
          class="serch-btn cursor-pointer table-top"
          style="margin: 0 16px"
        >
          {{ $t("导出EXCEL") }}
        </div>
        <div
          @click="exportResource"
          class="serch-btn cursor-pointer table-top"
          style="width: 120px"
        >
          导出采集资源
        </div>
        <!-- <div
          class="serch-btn cursor-pointer table-top"
          @click="showEcharts"
          style="width: 115px"
        >
          三相温度分布
        </div>
        <div class="serch-btn cursor-pointer table-top" style="margin: 0 16px">
          托辊测温
        </div> -->
      </div>
      <div class="self">
        <el-table
          ref="tableRef"
          :data="tableData"
          tooltip-effect="dark"
          style="width: 100%; margin-top: 16px"
          @selection-change="selectionChange"
        >
          <el-table-column
            align="center"
            prop="viewPointName"
            :label="$t('巡检点名称')"
          >
          </el-table-column>
          <el-table-column
            align="center"
            prop="createTime"
            :label="$t('巡检时间')"
          >
          </el-table-column>

          <el-table-column
            align="center"
            prop="cameraPhotoResourceId"
            :label="$t('可见光拍照')"
          >
            <template slot-scope="scope">
              <div
                v-if="
                  scope.row.cameraPhotoResourceId == '' ||
                  scope.row.cameraPhotoResourceId == null ||
                  scope.row.cameraPhotoResourceId == -1
                "
              >
                {{ $t("不采集") }}
              </div>
              <div
                v-else-if="scope.row.cameraPhotoResourceId == -2"
                class="column-imgs"
              >
                <img
                  src="../../../assets/images/objectData/err-img.png"
                  alt=""
                />
              </div>
              <div v-else class="column-imgs">
                <img
                  src="../../../assets/images/objectData/picture.png"
                  alt=""
                  @click="rowClick(scope.row.cameraPhotoResourceId, 'showPic')"
                />
              </div>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            prop="cameraVideoResourceId"
            :label="$t('可见光录像')"
          >
            <template slot-scope="scope">
              <div
                v-if="
                  scope.row.cameraVideoResourceId == '' ||
                  scope.row.cameraVideoResourceId == null ||
                  scope.row.cameraVideoResourceId == -1
                "
              >
                {{ $t("不采集") }}
              </div>
              <div
                v-else-if="scope.row.cameraVideoResourceId == -2"
                class="column-imgs"
              >
                <img
                  src="../../../assets/images/objectData/err-video.png"
                  alt=""
                />
              </div>
              <div v-else class="column-imgs">
                <img
                  src="../../../assets/images/objectData/video.png"
                  alt=""
                  @click="
                    rowClick(scope.row.cameraVideoResourceId, 'showVideo')
                  "
                />
              </div>
            </template>
          </el-table-column>

          <el-table-column
            align="center"
            prop="thermalPhotoResourceId"
            :label="$t('红外拍照')"
          >
            <template slot-scope="scope">
              <div
                v-if="
                  scope.row.thermalPhotoResourceId == '' ||
                  scope.row.thermalPhotoResourceId == null ||
                  scope.row.thermalPhotoResourceId == -1
                "
              >
                {{ $t("不采集") }}
              </div>
              <div
                v-else-if="scope.row.thermalPhotoResourceId == -2"
                class="column-imgs"
              >
                <img
                  src="../../../assets/images/objectData/err-img.png"
                  alt=""
                />
              </div>
              <div v-else class="column-imgs">
                <img
                  src="../../../assets/images/objectData/picture.png"
                  alt=""
                  @click="rowClick(scope.row.thermalPhotoResourceId, 'showPic')"
                />
              </div>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            prop="thermalVideoResourceId"
            :label="$t('红外录像')"
          >
            <template slot-scope="scope">
              <div
                v-if="
                  scope.row.thermalVideoResourceId == '' ||
                  scope.row.thermalVideoResourceId == null ||
                  scope.row.thermalVideoResourceId == -1
                "
              >
                {{ $t("不采集") }}
              </div>
              <div
                v-else-if="scope.row.cameraVideoResourceId == -2"
                class="column-imgs"
              >
                <img
                  src="../../../assets/images/objectData/err-video.png"
                  alt=""
                />
              </div>
              <div v-else class="column-imgs">
                <img
                  src="../../../assets/images/objectData/video.png"
                  alt=""
                  @click="
                    rowClick(scope.row.thermalVideoResourceId, 'showVideo')
                  "
                />
              </div>
            </template>
          </el-table-column>
          <!-- <el-table-column
            align="center"
            prop="partialResourceId"
            label="局放拍照"
          >
            <template slot-scope="scope">
              <div v-if="true" class="column-imgs">
                <img
                  src="../../../assets/images/objectData/picture.png"
                  alt=""
                  @click="rowClick(scope.row.partialResourceId, 'showPic')"
                />
              </div>
              <div v-else>无</div>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            prop="methaneResourceId"
            label="甲烷遥测"
          >
            <template slot-scope="scope">
              <div v-if="true" class="column-imgs">
                <img
                  src="../../../assets/images/objectData/picture.png"
                  alt=""
                  @click="
                    rowClick(scope.row.methaneResourceId, 'methane', scope.row)
                  "
                />
              </div>
              <div v-else>无</div>
            </template>
          </el-table-column>

          <el-table-column align="center" prop="thermal" label="热像仪最高温度">
          </el-table-column> -->
          <el-table-column align="center" label="操作" width="200">
            <template slot-scope="scope">
              <div class="table-btns">
                <div
                  style="width: 100px"
                  @click="handle(scope.row)"
                  class="serch-btn cursor-pointer"
                >
                  {{ $t("巡检对象信息") }}
                </div>
                <div
                  class="serch-btn cursor-pointer"
                  @click="identifyClick(scope.row)"
                >
                  重新识别
                </div>
              </div>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <div class="pagenation">
        <pagination
          :total="total"
          :page.sync="listQuerySubmit.pageNum"
          :limit.sync="listQuerySubmit.pageSize"
          @pagination="getTableList"
        >
        </pagination>
      </div>
    </div>
    <!-- dialog -->
    <el-dialog
      :title="$t('查看')"
      :visible.sync="dialogVisible"
      width="560px"
      @close="closeDialog"
    >
      <!-- 图片 -->
      <div
        v-if="
          dialogBooArr.find((item) => {
            return item.title == 'showPic';
          }).bool
        "
      >
        <div class="dialog-lineone">
          <div>{{ $t("拍摄时间") + "：" }}{{ dialogDetail.createTime }}</div>
          <div>{{ $t("文件名") + "：" }}{{ dialogDetail.resourceName }}</div>
          <div @click="downLoad" class="el-icon-download cursor-pointer"></div>
        </div>
        <div id="click">
          <img
            class="img"
            ref="togglePic"
            style="width: 100%"
            :src="dialogSrc"
            alt=""
          />
          <img
            v-if="!isScreenFull"
            @click="togglePic()"
            class="screenFull"
            src="../../../assets/images/screen.png"
            alt=""
          />
          <img
            v-else
            @click="togglePic()"
            class="screenFull"
            src="../../../assets/images/unscreen.png"
            alt=""
          />
        </div>
      </div>
      <!-- 视频 -->
      <div
        v-if="
          dialogBooArr.find((item) => {
            return item.title == 'showVideo';
          }).bool
        "
      >
        <div class="dialog-lineone">
          <div>{{ $t("录制时间") + "：" }}{{ dialogDetail.createTime }}</div>
          <div>{{ $t("文件名") + "：" }}{{ dialogDetail.resourceName }}</div>
          <div @click="downLoad" class="el-icon-download cursor-pointer"></div>
        </div>
        <div>
          <video
            muted
            controls
            style="width: 100%"
            ref="showVideo"
            id="showVideo"
          >
            <source :src="dialogSrc" type="video/mp4" />
          </video>
        </div>
      </div>
      <div slot="footer" style="display: flex; justify-content: flex-end">
        <div class="reset-btn" @click="closeDialog">{{ $t("取消") }}</div>
      </div>
    </el-dialog>
    <!-- 三相温度分布弹框 -->
    <el-dialog
      :title="$t('三相温度分布')"
      :visible.sync="echartsVisible"
      @close="closeEchartsDialog"
      ref="tk"
    >
      <div slot="title" class="header-title">
        <img
          class="echartsDialog"
          src="../../../assets/images/top.png"
          alt=""
        />
      </div>
      <div slot="title">{{ $t("三相温度分布") }}</div>
      <lineChart ref="lineChart" :lineChartAll="lineChartAll"></lineChart>
      <div class="close">
        <div
          @click="echartsVisible = false"
          class="serch-btn cursor-pointer"
          style="margin-top: 30px"
        >
          {{ $t("关闭") }}
        </div>
      </div>
    </el-dialog>
    <!-- 甲烷遥测弹框 -->
    <el-dialog
      :visible.sync="methaneVisible"
      width="60%"
      @close="closeDialog"
      class="methane"
    >
      <div slot="title" class="header-title">
        <img
          class="echartsDialog"
          src="../../../assets/images/top.png"
          alt=""
        />
      </div>
      <div slot="title" style="font-size: font-weight: bold;">
        {{ $t("甲烷遥测") }}
      </div>
      <div ref="methaneContent">
        <div class="dialog-header">
          <div>
            <span class="name">{{ $t("检测时间") + ":" }}</span>
            <span class="value">{{ dialogDetail.createTime }}</span>
          </div>
          <div class="tooltips">
            <img
              v-if="!isScreenFull"
              @click="methaneClick()"
              src="../../../assets/images/screen.png"
              alt=""
            />
            <img
              v-else
              @click="methaneClick()"
              src="../../../assets/images/unscreen.png"
              alt=""
            />
            <!-- <img
              style="margin-left: 16px"
              src="../../../assets/images/download.png"
              alt=""
            /> -->
          </div>
        </div>
        <div class="imgs" style="padding: 0 0px 0 42px">
          <img
            v-for="(item, index) in srcList"
            :key="index"
            :src="item"
            alt=""
          />
        </div>
        <methaneCharts
          ref="methaneCharts"
          :lineChartAll="methaneChartAll"
          :height="height"
        ></methaneCharts>
        <div class="dialog-header" style="margin-top: 20px">
          <div>
            <span class="name"> {{ $t("巡检点名称") + ":" }}</span>
            <span class="value">{{ dialogDetail.viewPointName }}</span>
          </div>
          <div>
            <span class="name">{{ $t("巡检结果") + ":" }}</span>
            <span class="value">{{
              dialogDetail.CH4Alarm == "0" ? $t("未发现甲烷") : $t("发现甲烷")
            }}</span>
          </div>
        </div>
      </div>
      <div class="close">
        <div @click="methaneVisible = false" class="serch-btn cursor-pointer">
          {{ $t("关闭") }}
        </div>
      </div>
    </el-dialog>
    <!-- 重新识别弹框 -->
    <IdentifyDialog
      :identifyVisible="identifyVisible"
      @taskDialogConfirm="identifyConfirm"
      @taskDialogCancle="identifyCancle"
    ></IdentifyDialog>
  </div>
</template>
<script>
/**
 * 数据中心-巡检记录-巡检点维度
 */
import IdentifyDialog from "./components/IdentifyDialog.vue";
import aplayer from "vue-aplayer";
import lineChart from "./components/lineChart.vue";
import methaneCharts from "./components/methaneCharts.vue";
import {
  API_pointpageInfoList,
  API_getResourceinfo,
  API_recognitionResult,
} from "@/api/data/inspectrecords.js";
import screenfull from "screenfull";
export default {
  name: "",
  props: {},
  dicts: ["recognition"],
  components: {
    aplayer,
    lineChart,
    methaneCharts,
    IdentifyDialog,
  },
  data() {
    return {
      pickerOptionsStart: {
        disabledDate: (time) => {
          let endDateVal = this.listQuery.endTime;
          if (endDateVal) {
            return (
              time.getTime() >=
              new Date(endDateVal).getTime() + 1 * 24 * 60 * 60 * 1000
            );
          }
        },
      },
      // 结束日期
      pickerOptionsEnd: {
        disabledDate: (time) => {
          let beginDateVal = this.listQuery.startTime;
          if (beginDateVal) {
            return time.getTime() < new Date(beginDateVal).getTime();
          }
        },
      },
      sevePort: window.location.protocol + "//" + window.location.host,
      identifyVisible: false, //重新识别弹框
      rowTaskExecId: "",
      rowViewPointId: "",
      // 折线图数据
      lineChartAll: [
        {
          name: this.$t("A相"),
          type: "line",
          // stack: 'Total',
          data: [120, 132, 101, 134, 90, 230, 210, 230],
        },
        {
          name: this.$t('"B相"'),
          type: "line",
          // stack: 'Total',
          data: [220, 182, 191, 234, 290, 330, 310, 230],
        },
        {
          name: this.$t("C相"),
          type: "line",
          // stack: 'Total',
          data: [150, 232, 201, 154, 190, 330, 410, 230],
        },
      ],
      methaneChartAll: [
        {
          type: "line",
          data: [],
        },
      ],
      srcList: [],
      listQuery: {
        // 查询条件
        viewPointName: null,
        startTime: null,
        endTime: null,
        pageNum: 1,
        pageSize: 10,
      },
      tableData: [], // table数据
      selectedTableData: [], //表格选中数据
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      total: 0, // 分页总数
      listQuerySubmit: {}, // 提交参数
      echartsVisible: false, //折线图弹框是否显示
      dialogSrc: "", //弹框URL
      dialogDetail: {}, //弹框图片数据
      dialogVisible: false, //图片dialog
      //控制弹框展示组件
      dialogBooArr: [
        {
          title: "showPic",
          bool: false,
        },
        {
          title: "showVideo",
          bool: false,
        },
        {
          title: "showAudio",
          bool: false,
        },
      ],
      taskName: this.$route.query.taskName,
      taskExecId: this.$route.query.taskExecId,
      progressStatus: this.$route.query.progressStatus,
      beginTime: this.$route.query.beginTime
        .replace(/ /g, "")
        .replace(/-/g, "")
        .replace(/:/g, ""),
      isScreenFull: false, //是否全屏
      downLoadUrl: "",
      methaneVisible: false, //甲烷遥测弹框
      height: "40vh",
    };
  },
  created() {
    this.listQuerySubmit = Object.assign({}, this.listQuery);
    this.getTableList();
  },
  mounted() {
    // 监听窗口大小改变，screenfull.isFullscreen的值为是否全屏，若是则true，反之false
    window.onresize = () => {
      this.isScreenFull = screenfull.isFullscreen;
    };
  },
  computed: {},
  methods: {
    /**重新识别 */
    identifyClick(row) {
      this.identifyVisible = true;
      this.rowTaskExecId = row.taskExecId;
      this.rowViewPointId = row.viewPointId;
    },
    /**重新识别 弹框确认 */
    identifyConfirm() {
      API_recognitionResult({
        taskExecId: this.rowTaskExecId,
        viewPointId: this.rowViewPointId,
      })
        .then((res) => {
          if (res.code == 200) {
            this.$message.success("重新识别命令已发送");
          }
        })
        .finally(() => {
          this.identifyVisible = false;
          this.rowTaskExecId = "";
          this.rowViewPointId = "";
        });
    },
    /**重新识别 弹框取消 */
    identifyCancle() {
      this.identifyVisible = false;
      this.$message.info("已取消");
    },
    /**搜索 */
    serachBtn() {
      this.listQuery.pageNum = 1;
      this.listQuerySubmit = Object.assign({}, this.listQuery);
      this.getTableList();
    },
    // 表格选中修改
    selectionChange(val) {
      this.selectedTableData = val;
      this.ids = val.map((item) => item.taskExecId);
      this.single = val.length !== 1;
    },
    /**采集资源数据 */
    getTableList() {
      const loading = this.$loading({
        lock: true,
        text: "Loading",
        spinner: "el-icon-loading",
        background: "rgba(0, 0, 0, 0.7)",
      });
      let obj = { ...this.listQuerySubmit, taskExecId: this.taskExecId };
      API_pointpageInfoList(obj)
        .then((res) => {
          if (res.code == 200) {
            if (res.rows.length > 0) {
              this.tableData = res.rows;
            } else {
              this.tableData = [];
            }
            this.total = Number(res.total);
            this.listQuery = Object.assign({}, this.listQuerySubmit);
          }
        })
        .finally(() => {
          loading.close();
        });
    },
    // 处理
    handle(scope) {
      this.$router.push({
        path: "/inspectrecords/dimensionalityObj",
        query: {
          taskExecId: scope.taskExecId,
          viewPointName: scope.viewPointName,
          viewPointId: scope.viewPointId,
          taskName: this.taskName,
        },
      });
    },
    /**表格点击视频音频事件 */
    rowClick(rowInfo, type, info) {
      const loading = this.$loading({
        lock: true,
        text: "Loading",
        spinner: "el-icon-loading",
        background: "rgba(0, 0, 0, 0.7)",
      });
      this.dialogSrc = "";
      //展示图片、视频、音频
      API_getResourceinfo({ id: rowInfo })
        .then((res) => {
          if (res.code == 200) {
            if (res.data) {
              this.dialogVisible = true;
              if (type == "showPic" || type == "showVideo") {
                switch (type) {
                  case "showPic":
                    this.dialogSrc = this.sevePort + res.data.resourceUrl;
                    break;
                  case "showVideo":
                    this.$nextTick(() => {
                      this.$refs.showVideo.src =
                        this.sevePort + res.data.resourceUrl;
                    });
                    break;
                }
                this.dialogDetail = res.data;
                this.downLoadUrl = res.data.resourceUrl;
              } else {
                if (info.viewPointResult != null && info.viewPointResult) {
                  //甲烷遥测
                  this.methaneVisible = true;
                  this.srcList = [];
                  let result = JSON.parse(info.viewPointResult);
                  this.dialogDetail = {
                    createTime: res.data.createTime,
                    viewPointName: info.viewPointName,
                    CH4Alarm: result.MethaneTelemetry.CH4Alarm,
                  };
                  let picList = result.MethaneTelemetry.CH4Photolist.split(",");
                  picList.forEach((item) => {
                    API_getResourceinfo({ id: item }).then((res) => {
                      if (res.code == 200) {
                        let src =
                          // "http://114.116.43.52:80"
                          window.location.protocol +
                          "//" +
                          window.location.host +
                          window.location.host +
                          res.data.resourceUrl;
                        this.srcList.push(src);
                      }
                    });
                  });
                  let chartList =
                    result.MethaneTelemetry.CH4Valuelist.split(",");
                  this.methaneChartAll[0].data = chartList;
                  // this.$refs.methaneCharts.initChart(this.methaneChartAll);
                } else {
                  this.$message.error(this.$t("甲烷遥测无数据"));
                }
              }
            } else {
              this.$message.error(this.$t("暂无数据"));
            }
          } else {
            this.dialogSrc = "";
            this.dialogDetail = {};
          }
        })
        .finally(() => {
          loading.close();
        });

      this.dialogBooArr.forEach((item) => {
        if (item.title == type) {
          item.bool = true;
        } else {
          item.bool = false;
        }
      });
    },
    /**close dialog */
    closeDialog() {
      this.dialogSrc = "";
      this.dialogVisible = false;
      this.dialogBooArr.forEach((item) => {
        if (item.title == "showPic") return;
        if (item.bool) {
          this.$refs[item.title].pause();
        }
        item.bool = false;
      });
    },
    downLoad() {
      this.$download.resource(this.downLoadUrl);
    },
    // 关闭三相温度分布弹框
    closeEchartsDialog() {
      this.echartsVisible = false;
    },
    // 打开三相温度分布弹框
    showEcharts() {
      this.echartsVisible = true;
    },
    /**
     * 导出PDF
     */
    defaultReport() {
      if (this.progressStatus == "5" || this.progressStatus == "6") {
        this.download(
          "/task.result/export.pdf?execIds=" + this.taskExecId,
          {
            ...this.queryParams,
          },
          `${this.$t("导出巡检报告名称")}${this.taskName}_${this.beginTime}.pdf`
        );
      } else {
        this.$message.error(this.$t("巡检过程中不支持导出"));
      }
    },
    /**
     * 导出Excel
     */
    defaultExcel() {
      if (this.progressStatus == "5" || this.progressStatus == "6") {
        this.download(
          "/task.result/export.excel?execIds=" + this.taskExecId,
          {
            ...this.queryParams,
          },
          `${this.$t("导出巡检报告名称")}${this.taskName}_${
            this.beginTime
          }.xlsx`
        );
      } else {
        this.$message.error(this.$t("巡检过程中不支持导出"));
      }
    },
    /**导出采集资源 */
    exportResource() {
      this.download(
        "/task.result/export.task.resource?execId=" + this.taskExecId,
        {},
        `${this.$t("采集资源")}${this.taskName}_${this.beginTime}.zip`
      );
    },
    togglePic() {
      if (!screenfull.isEnabled) {
        //判断一下浏览器是否支持全屏显示
        this.$message({
          message: this.$t("浏览器不能全屏"),
          type: "warning",
        });
        return false;
      }
      screenfull.toggle(this.$refs.togglePic);
    },
    methaneClick() {
      if (!screenfull.isEnabled) {
        //判断一下浏览器是否支持全屏显示
        this.$message({
          message: this.$t("浏览器不能全屏"),
          type: "warning",
        });
        return false;
      } else {
        screenfull.toggle(this.$refs.methaneContent);
        screenfull.on("change", () => {
          if (screenfull.isFullscreen) {
            //全屏时，要执行的操作
            this.height = "73vh";
          } else {
            //取消全屏时，要执行的操作
            this.height = "40vh";
          }
        });
      }
    },
    /** 重置按钮操作 */
    resetFormBtn(formName) {
      this.listQuery = {
        viewPointName: null,
        startTime: null,
        endTime: null,
      };
      this.serachBtn();
    },
  },
  filters: {
    getDate(data) {
      if (data == 0) {
        return this.$t("危急告警");
      } else if (data == 1) {
        return this.$t("严重告警");
      } else if (data == 2) {
        return this.$t("一般告警");
      } else if (data == 3) {
        return this.$t("预警");
      }
    },
  },
};
</script>

<style scoped lang="scss">
.table {
  width: 100%;
  height: 738px;
  padding: 24px;
  box-sizing: border-box;
  border-top: 1px dashed rgba(219, 255, 251, 0.2);
  position: relative;
  .btns {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    div:nth-child(2) {
      margin: 0 16px;
    }
  }
  .table-btns {
    display: flex;
    div {
      display: flex;
      // width: 46px;
      height: 28px;
      justify-content: center;
      align-items: center;
      font-size: 12px;
    }
    div:nth-child(2) {
      margin: 0 10px;
    }
    .gray {
      color: orange;
    }
    .green {
      color: #73f6af;
    }
  }
  .table-title {
    display: flex;
    .viewPointName,
    .taskName {
      display: flex;
      color: #ffffff;
      .label {
        opacity: 0.7;
      }
    }
    .taskName {
      margin-right: 30px;
    }
  }
  .pagenation {
    position: absolute;
    bottom: 30px;
    right: 20px;
  }
}
.column-imgs {
  img {
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
}
.close {
  display: flex;
  justify-content: flex-end;
}
.header-title {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}
.methane {
  .imgs {
    width: 100%;
    img {
      width: 14.2%;
      display: inline-block;
    }
  }
  .dialog-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    span {
      display: inline-block;
      font-size: 14px;
    }
    .name {
      color: #bfbfbf;
    }
    .value {
      color: #fff;
    }
  }
  .tooltips {
    img {
      width: 20px;
      height: 20px;
      display: inline-block;
      cursor: pointer;
    }
  }
}
/** 音频播放器*/
.aplayer {
  background-color: transparent;
  color: #fff;
  .aplayer-body {
    display: flex;
    flex-direction: column;
    .aplayer-pic {
    }
  }
}
.abow_dialog {
  display: flex;
  justify-content: center;
  align-items: Center;
  overflow: hidden;
  .el-dialog {
    margin: 0 auto !important;
    height: 90%;
    overflow: hidden;
    .el-dialog__body {
      position: absolute;
      left: 0;
      top: 54px;
      bottom: 0;
      right: 0;
      padding: 0;
      z-index: 1;
      overflow: hidden;
      overflow-y: auto;
    }
  }
}
#click {
  position: relative;
}
.screenFull {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  display: inline-block;
  cursor: pointer;
  z-index: 999;
}
/**弹框样式 */
.dialog-lineone {
  display: flex;
  margin: 0 0 20px 0;
  div:nth-child(1) {
    width: 50%;
  }
  div:nth-child(2) {
    width: 45%;
  }
  div:nth-child(3) {
    width: 5%;
  }
}
.change-audio {
  display: flex;
  margin-top: 20px;
  justify-content: center;
  div:nth-child(2) {
    margin-left: 20px;
  }
}

::v-deep {
  .el-date-editor.el-input,
  .el-date-editor.el-input__inner {
    width: 195px;
  }
}
::v-deep {
  .el-tabs__item {
    color: rgba(255, 255, 255, 0.5);
  }
  .el-tabs__nav-wrap::after {
    background-color: rgba(241, 243, 249, 0.2) !important;
  }
  .el-tabs__nav-scroll {
    padding: 0 35px;
  }
  .el-tabs__item.is-active {
    color: rgba(0, 209, 255, 1);
  }
  .el-tabs__active-bar {
    width: 50px !important;
    left: 4px;
    background-color: rgba(0, 209, 255, 1);
  }
}
::v-deep {
  .el-dialog:not(.is-fullscreen) {
    margin-top: 18vh !important;
  }
  .el-checkbox {
    margin-right: 10px;
  }
  .el-dialog__header {
    border: 2px dotted #2e3f48;
    padding-bottom: 20px;
  }
  .self {
    .el-table__body-wrapper {
      width: 100%;
      max-height: 531px;
      overflow: auto;
    }
  }
}
</style>
